
using System;
using System.Drawing;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using bjeschool_csharp.Model;

namespace bjeschool
{
	public partial class ClassNoteItemListCell : CommonCell<M_ClassNoteItem>
	{
		public ClassNoteItemListCell ()// : base ("ClassNoteItemListCell", null)
		{
			NSBundle.MainBundle.LoadNib("ClassNoteItemListCell", this, null);
		}
		
		public override void SetData (M_ClassNoteItem item)
		{
			
			Name.Text = item.Name;
			switch(item.Type)
			{
			case NoteItemType.Sys:
				Type.Text = "系统项目";
				break;
			case NoteItemType.Add:
				Type.Text = "加分项";
				break;
			case NoteItemType.Sub:
				Type.Text = "扣分项";
				break;
			}
			Sheet.Text = item.Sheet.ToString();
			CreateTime.Text = item.CreateTime.ToString();
			
		}
		
		[Outlet("CellView")]
		public override UITableViewCell CellView { get; set; }
		[Outlet("Name")]
		public UILabel Name { get; set; }
		[Outlet("Type")]
		public UILabel Type {get;set;}
		[Outlet("Sheet")]
		public UILabel Sheet {get;set;}
		[Outlet("CreateTime")]
		public UILabel CreateTime {get;set;}
	}
}

